<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" name="viewport"/>

<title><?=getValInArr(getSess(SESS_DIC),array('webInfo','webtitle'))?></title>
<script type="text/javascript" src="<?php echo base_url().'public/home/js/' ?>jquery.js"></script>
<?php
// include_once 'public/views/header.php';
include_once "public/home/html/search-select.php";
include_once "public/home/html/alert.php";
include_once 'public/home/html/laydate.php';
?>
<script type="text/javascript" src="<?php echo base_url().'public/home/js/' ?>function.js"></script>
<!-- <script src="public/home/js/function.js"></script> -->
<link rel="stylesheet" href="<?php echo base_url().'public/h_ui/lib/Hui-iconfont/1.0.8/' ?>iconfont.css">
<link rel="stylesheet" href="<?php echo base_url().'public/home/css/' ?>mui.min.css">
<!-- 日期选择控件 -->
<script src='<?php echo base_url().'public/home/mobile_date/' ?>jdate.min.js'></script>
</head>

<body>
  <body>
  <input type="hidden" id="url"  value="<?php echo base_url()?>" />
  <select name="" id="select">
   
  </select>
  <input type="text" class='input'id='select_date' placeholder="请选择日期" />
  <button type="text" class="button button-primary" id="search"></button>

 
<script type="text/javascript">
     $(function(){
      $.ajax({
        url: $("#url").val()+'Home/Class_Assess/getClass',
        type: 'POST',
        dataType: 'json',
        async:false,
       success:function(data){
        if(data.status){
          var t=JSON.parse(data.v);
          $.each(t, function(k, v) {
             $("#select").append("<option value='"+v['id']+"'>"+v['username']+"</option>");
          });
        }
       }
      })
      $('select').searchableSelect();

      //日期选择
      new Jdate({
        el: '#select_date',
        format: 'YYYY-MM-DD',
        beginYear: 2000,
        endYear: 2100
      })

      $("#search").click(function(event) {
        $.ajax({
          url: $("#url").val()+'Home/Class_Assess/getClass',
          type: 'POST',
          dataType: 'json',
          data: {param1: 'value1'},
          success:function(data){
            var t=JSON.parse(data.v);
            console.log(t);
            
          }
        })
        
      });

     })
      
</script>


</html>